import { Navigate } from 'react-router-dom'
import { RouteObject } from '@/router/interface'
/** 首页 */
import HomePage from '@/apps/bilibili/views/home'
/** 视频 */
import VideoPage from '@/apps/bilibili/views/video'
import PlayVideo from '@/apps/bilibili/views/video/PlayVideo'
/* 用户主页 */
import UserHome from '@/apps/bilibili/views/user'
/* 搜索页 */
import SearchPage from '@/apps/bilibili/views/search'

/** 测试 */
import Test from '@/apps/bilibili/views/test'

// 404
import NotFound from '@/apps/all-in-one/NotFound'

const BugManagerRouter: RouteObject[] = [
	{
		path: '',
		element: <Navigate to='home' />
	},
  {
	  path: 'home',
		element: <HomePage />,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-home'
		}
	},
	{
	  path: 'video',
		element: <VideoPage />,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-video'
		},
	},
	{
		path: 'play',
		element: <PlayVideo />,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-playVideo'
		}
	},
	{
		path: 'user',
		element: <UserHome/>,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-userHome'
		}
	},
	{
		path: 'test',
		element: <Test />,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-test'
		}
	},
	{
		path: 'search',
		element: <SearchPage/>,
		meta: {
			requireAuth: true,
			title: 'bilibili',
			key: 'bilibili-searchPage'
		}
	},
	{
		path: '*',
		element: <NotFound />,
	}
]
export default BugManagerRouter